package com.rick;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component

public class MyRunner implements ApplicationRunner {
    @Resource
    private EchoService echoService;
    private static final Logger logger = LoggerFactory.getLogger(MyRunner.class);

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        logger.info(echoService.echo("spring-boot-dubbo"));
    }
}
